package com.css.zfzx.sjcj.modules.hddcAviationMagnetic.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.common.spacedata.vo.SpaceDataParamsVo;
import com.css.zfzx.sjcj.modules.hddcAviationMagnetic.repository.entity.HddcAviationmagneticEntity;
import com.css.zfzx.sjcj.modules.hddcAviationMagnetic.viewobjects.HddcAviationmagneticQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zyb
 * @date 2020-11-26
 */

public interface HddcAviationmagneticService {

    JSONObject queryHddcAviationmagnetics(HddcAviationmagneticQueryParams queryParams, int curPage, int pageSize,String sort,String order);

    HddcAviationmagneticEntity getHddcAviationmagnetic(String id);

    HddcAviationmagneticEntity saveHddcAviationmagnetic(HddcAviationmagneticEntity hddcAviationmagnetic);
    Iterable<HddcAviationmagneticEntity> saveHddcAviationmagneticList(List<HddcAviationmagneticEntity> list);
    HddcAviationmagneticEntity updateHddcAviationmagnetic(HddcAviationmagneticEntity hddcAviationmagnetic);

    void deleteHddcAviationmagnetics(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    void exportFile(HddcAviationmagneticQueryParams queryParams, HttpServletResponse response);

    String exportExcel(MultipartFile file, HttpServletResponse response);

    /**
     * 逻辑删除-根据项目id删除数据
     * @param projectIds
     */
    void deleteByProjectId(List<String> projectIds);

    /**
     * 逻辑删除-根据任务id删除数据
     * @param taskIds
     */
    void deleteByTaskId(List<String> taskIds);

    String judegeParams(String[] datas);

    void saveHddcAviationmagneticFromShpFiles(List<List<Object>> list, String provinceName, String cityName, String areaName,String savefilename);

    List<HddcAviationmagneticEntity> findAll();

    void deleteFileData(SpaceDataParamsVo paramsVo);
}
